(function(TYPES,typeId){
    function my_o(){
        var that = this;
        this.run=function(a1,arr2){
            var output = 0;
            var my_a = [];
            for (var my_b in arr2) {
                my_a.push(my_b);
            };
            var my_c = my_a.length;
            (function my_d(my_e){
                if (my_e < my_c) {
                    var my_f = my_a[my_e];
var a2 = arr2[my_f];
var gtans = [a1, a2];
var my_g = [];
var my_n = ME.run(gtans);
my_n.onComplete=function(result){
                        var my_h = result;
                        for (var my_i in my_h) {
                            my_g.push(my_i);
                        };
                        var my_j = my_g.length;
                        (function my_k(my_l){
                            if (my_l < my_j) {
                                var my_m = my_g[my_l];
var g = my_h[my_m];
output+=g;
my_k(my_l+1);
                            } else {
                                my_d(my_e+1);
                            };
                        })(0);
                    }
                } else {
                    that.onComplete(output);
                };
            })(0);
        }
        this.onComplete=function(result){
            return result;
        }
    }    TYPES.registerType(typeId,my_o);
})(RULES,"test7-1");
